﻿<%@ Page Title="ModifyEpisode" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="ModifyEpisode.aspx.cs" Inherits="ModifyEpisode" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act1" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Epizód szerkesztése
    </h2>
    <asp:UpdatePanel ID="ModifyEpisodeUpdatePanel" runat="server" UpdateMode="Always">
    <Triggers>
        <asp:PostBackTrigger ControlID="EpisodeModify" />
    </Triggers>
    <ContentTemplate>
        <fieldset ID="ModifyEpisodePanel" runat="server">
        <table class="formTable" dir="ltr">
            <tr>
                <td class="right">
                    <asp:Label  ID="Label11" runat="server" Text="Sorozat:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:DropDownList ID="AddEpisodeChooseSeries" runat="server" Width="300px" 
                         AutoPostBack="true" onselectedindexchanged="AddEpisodeChooseSeries_SelectedIndexChanged" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label12" runat="server" Text="Évad:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:DropDownList ID="AddEpisodeChooseSeason" runat="server" Width="300px" AutoPostBack="false" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label7" runat="server" Text="Epizód száma:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeNumber" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label1" runat="server" Text="Magyar cím:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeTitleHun" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label2" runat="server" Text="Eredeti cím:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeTitleOrig" runat="server" Width="300px" 
                        AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label3" runat="server" Text="Megjelenés dátuma:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeReleaseDate" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                    <act1:CalendarExtender ID="AddEpisodeReleaseDateExtender" TargetControlID="AddEpisodeReleaseDate" Format="yyyy-MM-dd" runat="server"></act1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label8" runat="server" Text="Epizód hossza:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:DropDownList ID="AddEpisodeLengthHours" runat="server" Width="40px">
                    </asp:DropDownList>
                    <asp:Label  ID="Label9" runat="server" Text=" óra"
                        ForeColor="Black" EnableViewState="false" />
                    <asp:DropDownList ID="AddEpisodeLengthMinutes" runat="server" Width="40px">
                    </asp:DropDownList>
                    <asp:Label  ID="Label10" runat="server" Text=" perc"
                        ForeColor="Black" EnableViewState="false" />
                    <asp:DropDownList ID="AddEpisodeLengthSeconds" runat="server" Width="40px">
                    </asp:DropDownList>
                    <asp:Label  ID="Label13" runat="server" Text=" másodperc"
                        ForeColor="Black" EnableViewState="false" />
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label5" runat="server" Text="Nyitó kép:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:CheckBox ID="AddEpisodeKeepImgCheck" runat="server" 
                        Text="Új kép feltöltése" Checked="false" 
                        oncheckedchanged="AddEpisodeKeepImgCheck_CheckedChanged" AutoPostBack="true" />
                    <div id="AddEpisodeKeepImgDiv" runat="server">
                        <asp:Image ID="AddEpisodeKeepImg" runat="server" Width="150px" Height="150px" ImageUrl="~/images/nopic.png" />
                    </div>
                    <div id="AddEpisodeChangeImgDiv" runat="server" visible="false">
                        <asp:FileUpLoad id="AddEpisodeImg" runat="server" autopostback="false"/>
                        <br />
                        <asp:Label runat="server" id="StatusLabel" text="" ForeColor="Red"  />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label6" runat="server" Text="Beágyazott video címe:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeEmbedVideo" runat="server" Width="300px" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    <asp:Label  ID="Label4" runat="server" Text="Rövidebb tartalmi leírás:"
                        ForeColor="Black" EnableViewState="false" />
                </td>
                <td class="left">
                    <asp:TextBox ID="AddEpisodeDescription" runat="server" Width="400px" 
                        Height="120px" TextMode="MultiLine" AutoPostBack="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                </td>
                <td class="right">
                    <asp:Button ID="EpisodeModify" runat="server" Text="Módosítás" 
                        onclick="EpisodeModify_Click" />
                    <asp:Button ID="EpisodeCancel" runat="server" Text="Mégse" 
                        onclick="EpisodeCancel_Click" />
                </td>
            </tr>
        </table>
        </fieldset>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

